/******************************************************************************
 * @File name   :      IJobMgntService.java
 *
 * @Author      :      cai junyi
 *
 * @Date        :      2011-10-25
 *
 * @Copyright Notice: 
 * Copyright (c) 2014 DMS, Inc. All  Rights Reserved.
 * This software is published under the terms of the DMS Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 * 
 * 
 * ----------------------------------------------------------------------------
 * Date                   Who         Version        Comments
 * 2011-10-25 上午9:55:12        cai junyi     1.0            Initial Version
 *****************************************************************************/
package com.cap.bts.framework.common.service;

import java.util.List;

import com.cap.bts.framework.common.exception.AppException;
import com.cap.bts.framework.common.service.IBaseService;
import com.cap.bts.framework.scheduler.dto.JobQueryDto;
import com.cap.bts.framework.scheduler.dto.JobResultDto;

/**
 *
 */
public interface IJobMgntService extends IBaseService {
    
    /**
     * Get job by query dto
     * @Date        :      2011-10-25
     * @param queryDto
     * @return
     * @throws AppException
     */
    public List<JobResultDto> getJobByQueryDto(JobQueryDto queryDto) throws AppException;
    
    /**
     * retry job
     * @Date        :      2011-10-25
     * @param jobName
     * @return
     * @throws AppException
     */
    public boolean retryJob(String jobName) throws AppException;

}
